# $Id: PKGBUILD 68306 2012-03-21 10:40:24Z pschmitz $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
# Contributor: nesl247 <nesl247@gmail.com>

pkgname=libcompizconfig
pkgver=0.8.8
pkgrel=2
pkgdesc="Compiz configuration system library"
arch=('i686' 'x86_64')
url="http://www.compiz.org"
license=('GPL')
depends=('compiz-core' 'libxml2' 'libxcomposite' 'libxinerama' 'startup-notification'
	'libxml++')
makedepends=('intltool' 'pkgconfig')
conflicts=('libcompizconfig-git')
source=(http://releases.compiz-fusion.org/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
options=('!emptydirs' '!libtool')
sha1sums=('8ea1f15fd9e1e2eb37a9814646659a31a8018fd8')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  CPPFLAGS="$CPPFLAGS -I/usr/include/compiz -I/usr/include/startup-notification-1.0 \
	-I/usr/include/libxml2" ./configure --prefix=/usr --sysconfdir=/etc 

  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
}
